package com.zrrd.mybatis_02.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title Student
 * @description
 * @create 2024/10/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Integer id;
    private String studentName;
    private Integer studentAge;
    /**
     * 班级id
     */
    private Integer cid;
    /**
     * 学生选择的课程集合
     */
    private List<Course> courseList;

    public static void main(String[] args) {
        //把任意类和对象转换为Class类型的方式：
        //类名.class
        Class<? extends Student> aClass1=Student.class;
        //对象：
        Class<? extends Student> aClass = new Student().getClass();

    }
}
